import request from '@/utils/request'

// 查询客人信息列表
export function listCustomerInformation(query) {
  return request({
    url: '/BasicSettings/CustomerInformation/list',
    method: 'get',
    params: query
  })
}

// 查询客人信息详细
export function getCustomerInformation(customerId) {
  return request({
    url: '/BasicSettings/ CustomerInformation/' + customerId,
    method: 'get'
  })
}

// 新增客人信息
export function addCustomerInformation(data) {
  return request({
    url: '/BasicSettings/CustomerInformation',
    method: 'post',
    data: data
  })
}

// 修改客人信息
export function updateCustomerInformation(data) {
  return request({
    url: '/BasicSettings/ CustomerInformation',
    method: 'put',
    data: data
  })
}

// 删除客人信息
export function delCustomerInformation(customerId) {
  return request({
    url: '/BasicSettings/ CustomerInformation/' + customerId,
    method: 'delete'
  })
}
